<table>
  <thead>
    <tr>
      <th><%=t('activerecord.models.material')%></th>
      <th> <%= t('activerecord.attributes.materials_wish_list.count') %> </th>
    </tr>
  </thead>

  <tbody>
    <% @materials.each do |material| %>
      <tr>
        <%= hidden_field_tag 'materials_selected[]', material.id %>
        <% @material = material %>
        <td><%= render :partial => 'materials/material_info_for_list', :object => @material %></td>
        <td align="right"> <%= text_field_tag 'materials_selected_count[]', 1, :size => 2, :maxlength => 3 %> </td>
      </tr>
    <% end %>
  </tbody>
</table>
